package com.greensecurity.sim.service;

import com.greensecurity.sim.entity.User;

import java.util.List;
import java.util.Optional;

public interface UserService {
    User findByUserName(String getMapByName);

    User findByPhone(String phone);

    String save(User user);

    Optional<User> findById(Long id);

    String selectRoleUserNum(String id);

    Integer selectAllUserNum();

    List<User> findAll();

    String del(User user);
}
